﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MIO.Client.RTT
{
     class RTTInfo
    {
        private double rtt;
        private double srtt;
        private double rttval;
        private double rto;
        private int rertyCount;
        private long timestamp;

        public double Rtt
        {
            get
            {
                return rtt;
            }

            set
            {
                rtt = value;
            }
        }

        public double Srtt
        {
            get
            {
                return srtt;
            }

            set
            {
                srtt = value;
            }
        }

        public double Rttval
        {
            get
            {
                return rttval;
            }

            set
            {
                rttval = value;
            }
        }

        public double Rto
        {
            get
            {
                return rto;
            }

            set
            {
                rto = value;
            }
        }

        public int RertyCount
        {
            get
            {
                return rertyCount;
            }

            set
            {
                rertyCount = value;
            }
        }

        public long Timestamp
        {
            get
            {
                return timestamp;
            }

            set
            {
                timestamp = value;
            }
        }

        public long RtoMilliseconds
        {
            get
            {
                return (long)rto * 1000;
            }
        }
    }
}
